home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part2 / 11814 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.1 KB

  1. Path: Ra.MsState.Edu!mcc3
  2. From: M Christopher Cotting <mcc3@Ra.MsState.Edu>
  3. Newsgroups: comp.lang.c
  4. Subject: RS232 & Strings
  5. Date: Tue, 26 Mar 1996 14:50:57 -0600
  6. Organization: Mississippi State University
  7. Message-ID: <Pine.SUN.3.91.960326144705.10920A-100000@Ra.MsState.Edu>
  8. NNTP-Posting-Host: ra.msstate.edu
  9. Mime-Version: 1.0
  10. Content-Type: TEXT/PLAIN; charset=US-ASCII
  11.  
  12. Howdy!
  13.  
  14. I have run into some problems and was wondering if anyone out there could 
  15. help.  I am writing a program for MS DOS 6.22 in Borland C/C++ v. 4.52 
  16. and have hit a wall.  I need to be able to receive a string that is ten 
  17. char. long (starting w/ a + or - and ending with a <CR> ) from an 
  18. external device that is hooked to a PC RS232 port.  I have gotten the 
  19. port initialized, etc. can receive some data from it, but I need to be 
  20. able to receive a string from the device.  Using inport and casting the 
  21. integer value received from the register as a char & then peicing it all 
  22. together did not work, and I was wondering if there was a way to receive 
  23. a string from the port. 
  24.  
  25. Any help would be appreciated.
  26.  
  27. Thanks in advance,
  28. Chris Cotting
  29.  
  30. mcc3@ra.msstate.edu
  31.  
  32.  
  33.